﻿ @using QuocHoi_TV_Frontend.Models
@{  
    List<BroadcastDetail> lstBroadcast = Model;
    string scheduleDate = "";
    try
    {
        scheduleDate = lstBroadcast[0].BroadcastSchedule.BroadcastDate.ToString();
    }
    catch {}
}

<input type="hidden" id="dateSchedule" name="dateSchedule" value="@scheduleDate" />
<div class="box_details_lps">
    <table width="100%" cellspacing="0" cellpadding="0">
        <tbody>
            @try
                {
                  
                    for (int i = 0; i <lstBroadcast.Count; i++)
                    {
                        if (i%2==0)
                        {
                <tr class="decor-row">
                    <td>
                        <span class="time">@lstBroadcast[i].TimeFrom - @lstBroadcast[i].TimeTo </span>
                    </td>
                    <td class="col02">@lstBroadcast[i].BroadcastDetail1</td>
                    <td class="col03">
                        <div></div>
                        <div></div>
                    </td>
                </tr>
                        }
                        else
                        {
                <tr class="">
                    <td>
                        <span class="time">@lstBroadcast[i].TimeFrom - @lstBroadcast[i].TimeTo </span>
                    </td>
                    <td class="col02">@lstBroadcast[i].BroadcastDetail1</td>
                    <td class="col03">
                        <div></div>
                        <div></div>
                    </td>
                </tr>
                        }
                    }
                  
                }
                catch (Exception)
                {
                    
                }
        </tbody>
    </table>
</div>
